package com.yaodian100.ec.member.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_MEMBER_BLACK_LIST")
public class BlackList extends BaseEntity {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -4860250978526137207L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_member_black_list")
	@SequenceGenerator(name = "seq_ec_member_black_list", sequenceName = "SEQ_EC_MEMBER_BLACK_LIST")
	@Column(name = "ID")
	private int id;

	@Column(name = "MEMBER_ID", nullable = false, length = 10)
	private String memberId;

	@Column(name = "BLOCK_TYPE", nullable = false, length = 2)
	private String blockType;

	@Column(name = "BLOCK_STATUS", nullable = false, length = 1)
	private String blockStatus;

	@Column(name = "BLOCK_REASON", length = 150)
	private String blockReason;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UNBLOCK_DATE")
	private Date unBlockDate;

	public String getBlockReason() {
		return blockReason;
	}

	/**
	 * @return the blockStatus
	 */
	public String getBlockStatus() {
		return blockStatus;
	}

	public String getBlockType() {
		return blockType;
	}

	public int getId() {
		return id;
	}

	public String getMemberId() {
		return memberId;
	}

	public Date getUnBlockDate() {
		return unBlockDate;
	}

	public void setBlockReason(String blockReason) {
		this.blockReason = blockReason;
	}

	/**
	 * @param blockStatus the blockStatus to set
	 */
	public void setBlockStatus(String blockStatus) {
		this.blockStatus = blockStatus;
	}

	public void setBlockType(String blockType) {
		this.blockType = blockType;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public void setUnBlockDate(Date unBlockDate) {
		this.unBlockDate = unBlockDate;
	}
}